package org.mtmi.ui.scenes.actions;

import org.mtmi.ui.IMG;
import org.mtmi.ui.actions.Action;
import org.mtmi.ui.drawables.IDrawable;
import org.mtmi.ui.scenes.SceneManager;

public class NextSceneAction extends Action
{
	
	public NextSceneAction() {
		super( PUSH );
	}
	
	@Override
	public String getText() {
		return "Next Scene";
	}
	
	@Override
	public IDrawable getImage() {
		return IMG.GetD( IMG.I_NEXT_SCENE );
	}
	
	@Override
	public boolean isEnabled() {
		return SceneManager.getDefault().hasNext();
	}
	
	@Override
	public void run() {
		SceneManager.getDefault().nextScene();
	}
}
